package com.ll.beautymall.bean;

import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;

import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2016/10/26.
 */
public class ZeroHeader {
    /**
     * id : 1464944071
     * brand_ids : 234880,234922
     * brand_titles : 0元购物专区,美丽衣橱
     * taobao_seller_nicks :
     * title : 好货0元购
     * short_title : 0元购
     * pic_url : http://7xkpsl.com2.z0.glb.qiniucdn.com/data/img/activity/896615112d2db34f02c2e424b527831b.jpg
     * pic_urls :
     * display_type : 0
     * description : 每日更新，好货0元购~
     * url :
     * start_time : 1464883200
     * end_time : 1496419200
     * product_type : 1
     * taobao_num_iids : 2000002,2000004,2000003,456987,456990,456907,456905,456904,456891,456884,456908,456935,456792,456791,456785,456782,456781,456989,456778,456777,456776,456986,456775,456770,456766,456765,456755,456748,456747,456738,456737,456729,456715,456714,456713,456702,456701,456693,456692,456683,456674,456673,456662,456661,456655,456654,456612,456611,456605,456604,456603,456602,456570,456568,456567,456541,456521,456520,456509,456508,456491,456490,456489,456488,456474,456466,456463,456455,456454,456445,456434,456433,456425,456424,456405,456404,456396,456395,456382,456380,456379,456371,456370,456361,456334,456297,456295,456294,456193,456192,456191,456048,456047,455962,455941,455940,455935,455781,455780,455779,455772,455759,455757,455753,455747,455746,455743,455742,455740,455739,455702,455645,455573,455569,455568,455566,455564,455560
     * is_ask_share : 0
     * ask_share_content :
     * share_goto : qqspace,sinaweibo,tencweibo,wxtimeline,all
     * share_title : 好货0元购~
     * share_message : 每日更新，心动不如行动。
     * is_show_vote : 0
     * products_count : 118
     * activity_category_ids :
     * activity_type : 1
     * flag_url :
     * published_time : 1464944234
     * visits_count : 7991
     * comments_count : 0
     * likes_count : 0
     * shares_count : 1
     * created_time : 1464944071
     * status : 0
     * sort_order : 1464944234
     * content : {}
     * mini_pic_url : null
     * money_symbol : ¥
     */

    private String id;
    private String brand_ids;
    private String brand_titles;
    private String taobao_seller_nicks;
    private String title;
    private String short_title;
    private String pic_url;
    private String pic_urls;
    private int display_type;
    private String description;
    private String url;
    private String start_time;
    private String end_time;
    private String product_type;
    private String taobao_num_iids;
    private String is_ask_share;
    private String ask_share_content;
    private String share_goto;
    private String share_title;
    private String share_message;
    private String is_show_vote;
    private String products_count;
    private String activity_category_ids;
    private String activity_type;
    private String flag_url;
    private String published_time;
    private int visits_count;
    private String comments_count;
    private int likes_count;
    private String shares_count;
    private String created_time;
    private String status;
    private String sort_order;
    private ContentBean content;
    private Object mini_pic_url;
    private String money_symbol;

    public static ZeroHeader objectFromData(String str) {

        return new Gson().fromJson(str, ZeroHeader.class);
    }

    public static List<ZeroHeader> arrayZeroHeaderFromData(String str) {

        Type listType = new TypeToken<ArrayList<ZeroHeader>>() {
        }.getType();

        return new Gson().fromJson(str, listType);
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getBrand_ids() {
        return brand_ids;
    }

    public void setBrand_ids(String brand_ids) {
        this.brand_ids = brand_ids;
    }

    public String getBrand_titles() {
        return brand_titles;
    }

    public void setBrand_titles(String brand_titles) {
        this.brand_titles = brand_titles;
    }

    public String getTaobao_seller_nicks() {
        return taobao_seller_nicks;
    }

    public void setTaobao_seller_nicks(String taobao_seller_nicks) {
        this.taobao_seller_nicks = taobao_seller_nicks;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getShort_title() {
        return short_title;
    }

    public void setShort_title(String short_title) {
        this.short_title = short_title;
    }

    public String getPic_url() {
        return pic_url;
    }

    public void setPic_url(String pic_url) {
        this.pic_url = pic_url;
    }

    public String getPic_urls() {
        return pic_urls;
    }

    public void setPic_urls(String pic_urls) {
        this.pic_urls = pic_urls;
    }

    public int getDisplay_type() {
        return display_type;
    }

    public void setDisplay_type(int display_type) {
        this.display_type = display_type;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getStart_time() {
        return start_time;
    }

    public void setStart_time(String start_time) {
        this.start_time = start_time;
    }

    public String getEnd_time() {
        return end_time;
    }

    public void setEnd_time(String end_time) {
        this.end_time = end_time;
    }

    public String getProduct_type() {
        return product_type;
    }

    public void setProduct_type(String product_type) {
        this.product_type = product_type;
    }

    public String getTaobao_num_iids() {
        return taobao_num_iids;
    }

    public void setTaobao_num_iids(String taobao_num_iids) {
        this.taobao_num_iids = taobao_num_iids;
    }

    public String getIs_ask_share() {
        return is_ask_share;
    }

    public void setIs_ask_share(String is_ask_share) {
        this.is_ask_share = is_ask_share;
    }

    public String getAsk_share_content() {
        return ask_share_content;
    }

    public void setAsk_share_content(String ask_share_content) {
        this.ask_share_content = ask_share_content;
    }

    public String getShare_goto() {
        return share_goto;
    }

    public void setShare_goto(String share_goto) {
        this.share_goto = share_goto;
    }

    public String getShare_title() {
        return share_title;
    }

    public void setShare_title(String share_title) {
        this.share_title = share_title;
    }

    public String getShare_message() {
        return share_message;
    }

    public void setShare_message(String share_message) {
        this.share_message = share_message;
    }

    public String getIs_show_vote() {
        return is_show_vote;
    }

    public void setIs_show_vote(String is_show_vote) {
        this.is_show_vote = is_show_vote;
    }

    public String getProducts_count() {
        return products_count;
    }

    public void setProducts_count(String products_count) {
        this.products_count = products_count;
    }

    public String getActivity_category_ids() {
        return activity_category_ids;
    }

    public void setActivity_category_ids(String activity_category_ids) {
        this.activity_category_ids = activity_category_ids;
    }

    public String getActivity_type() {
        return activity_type;
    }

    public void setActivity_type(String activity_type) {
        this.activity_type = activity_type;
    }

    public String getFlag_url() {
        return flag_url;
    }

    public void setFlag_url(String flag_url) {
        this.flag_url = flag_url;
    }

    public String getPublished_time() {
        return published_time;
    }

    public void setPublished_time(String published_time) {
        this.published_time = published_time;
    }

    public int getVisits_count() {
        return visits_count;
    }

    public void setVisits_count(int visits_count) {
        this.visits_count = visits_count;
    }

    public String getComments_count() {
        return comments_count;
    }

    public void setComments_count(String comments_count) {
        this.comments_count = comments_count;
    }

    public int getLikes_count() {
        return likes_count;
    }

    public void setLikes_count(int likes_count) {
        this.likes_count = likes_count;
    }

    public String getShares_count() {
        return shares_count;
    }

    public void setShares_count(String shares_count) {
        this.shares_count = shares_count;
    }

    public String getCreated_time() {
        return created_time;
    }

    public void setCreated_time(String created_time) {
        this.created_time = created_time;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getSort_order() {
        return sort_order;
    }

    public void setSort_order(String sort_order) {
        this.sort_order = sort_order;
    }

    public ContentBean getContent() {
        return content;
    }

    public void setContent(ContentBean content) {
        this.content = content;
    }

    public Object getMini_pic_url() {
        return mini_pic_url;
    }

    public void setMini_pic_url(Object mini_pic_url) {
        this.mini_pic_url = mini_pic_url;
    }

    public String getMoney_symbol() {
        return money_symbol;
    }

    public void setMoney_symbol(String money_symbol) {
        this.money_symbol = money_symbol;
    }

    public static class ContentBean {
        public static ContentBean objectFromData(String str) {

            return new Gson().fromJson(str, ContentBean.class);
        }

        public static List<ContentBean> arrayContentBeanFromData(String str) {

            Type listType = new TypeToken<ArrayList<ContentBean>>() {
            }.getType();

            return new Gson().fromJson(str, listType);
        }
    }
}
